package com.link.base.base.product.dao.mybatis.mapper;

import com.link.base.base.product.model.ProdColl;
import com.link.base.base.product.model.ProdCollCount;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * @author unknown
 * @date unknown
 * @comments 收藏夹产品
 */
public interface ProdCollMapper extends BasicMapper<ProdColl> {

    /**
     * 根据商品ID删除一条数据
     *
     * @param entity
     * @throws Exception
     */
    public void deleteByProdId(ProdColl entity) throws Exception;

    /**
     * 统计员工收藏夹的数量
     *
     * @param entity
     * @return 收藏夹的数量
     */
    public ProdCollCount countProductByEmpId(ProdColl entity);


    /**
     * 删除收藏夹
     *
     * @param pc
     */
    public void deleteByUPIds(ProdColl pc);

    /**
     * 收藏夹产品数量
     *
     * @param entity
     * @return List ProdCollCount
     * @throws Exception
     */
    public List<ProdCollCount> countProduct(ProdColl entity) throws Exception;
}
